﻿using Db;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Db
{
    public class DbData
    {


        public static int ISCONFIRE = 1;
        public static int ISCONWSD = 1;
        public static int ISCONXIAODU = 1;
        public static bool ISCONDBCONNECT = false;
        public static string CONWSDDB = @"127.0.0.1\classes2\sqldb.db";
        public static bool ISLIANDONG = false;

        public static bool FIREWARNING = false;
        public static bool ISFIRETONGFENG = false;
        public static bool WSDWARNING = false;
        public static bool ISWSDTONGFENG = false;
        public static String WARNINGTEXT = "";

        public static int KUFANGID = 1;

        public static Model.HuanJingZhuangTaiLog HUANJINCHUSHI = null;
        public static Model.HuanJingZhuangTaiLog HUANJINJIASHI = null;
        public static Model.HuanJingZhuangTaiLog HUANJINXIAODU = null;

        public static Model.shelfop SHELFOP = null;

        public static Model.ARCHINFO GARCHINFO = null;

        public static int ShelfNum = 0;
        public static int MJJHUM = 0;
        public static decimal MJJTEM = 0;












        /// <summary>
        /// 基础数据
        /// </summary>
        /// 
        //public static string ConnectionString = "";//数据库连接字符串；
        public static int AreaNum = 0;
        public static string ConnectionString = @"Data Source=.;Initial Catalog=DBMJJ;User ID=sa;Password=abc123";//调试使用
        public static string SqliteConString = "";//Sqlite连接；
        public static int MoveId = 0;
        public static string CO = "常州市鸥迅智能科技有限公司";
        public static int AreaID = 1;  //默认区号
        public static int FixedID = 1; //固定架编号;
        public static int RightID = 1;  //右侧编号
        public static int LeftID = 1;//左侧编号
        public static int LeftLength = 100;//左侧距离
        public static int RightLength = 70;//右侧距离
        public static float Speed = 10.0f; //移架速度
        public static int RepetNum = 10;//通信重复次数

        public static bool IsVoise = true;//是否有声音
        public static int VoiceNum = 0; // 声音参数  不同的XP声道不一样

        public static string QianZhui = "1"; //前缀
        public static string HouZhui = "1";//后缀

        public static string OldQianZhui = "1"; //前缀
        public static string OldHouZhui = "1";//后缀
        public static long CodeId = 1000000001;


        public static bool VoiceOver = false;//声音结束
        public static bool ArchiveOpenflag = false; //打开操作

        public static int UpHum = 80;

        public static bool IsUpHum = false;

        public static bool IsRemote = true; //是否远程；

        /// <summary>
        /// 状态数据
        /// </summary>
        public static bool IsPower = false; //是否上电
        public static bool LOCKED = false;  //锁定

        public static bool[] LOCKEDID = new bool[50]; // 左边限位符


        public static bool DISENABLE = false;  //禁止
        public static bool[] MOVINGLEFT = new bool[50];  //在左移动
        public static bool[] MOVINGRIGHT = new bool[50];  //在右移动
        public static int OUTDISENABLEID = 0;  //输出禁止架编号
        public static bool[] LEFTPOSITION = new bool[50]; // 左边限位符
        public static bool[] RIGHTPOSITION = new bool[50]; // 右边限位符
        public static bool STOP = false;  //停


        public static int UPOpenId = -1; //上位机打开架号


        public static bool FlagLed = true;  //信号标号
        public static bool LampOk = false;  //到位后灯是否开了。

        public static bool IsTip = false;  //是否提示



        public static int WaitTime = 30;  //等待时间  3、3增设
        public static DateTime LastWorkTime = DateTime.Now; //3月18日更新,最后操作时间

        public static bool ExitTip = false;

        public static bool IsServerOpen = true;



        //20150726 增加全局变量，增加温湿度联动
        public static string IsConWsd = "";
        public static string ConWsdDb = "";

        public static DateTime LastTelTime = new DateTime();


        public static string ShelfPostion = "";

        public static bool FlagComm = true;

        /// <summary>
        /// 是否是服务段
        ///
        /// </summary>
        public static bool ISSERVER = false;
    }
}
